package com.cn.design.factory.ioc;

/**
 * @author xuhui
 * @Description:
 * @date 2022-06-29 18:58
 **/
public class Client {

    //1.new的方式
    public static void main(String[] args) {
        //需要了解接口和对应的实现类
        Phone iphone = PhoneFactory.getInstance("com.design.factory.ioc.IPhone");
        Phone miPhone = PhoneFactory.getInstance("com.design.factory.ioc.MiPhone");
    }
}
